# -*- coding: utf-8 -*-
"""
Created on Wed Sep 11 14:44:38 2024
1 命名参数
2 默认参数
@author: Administrator
"""

def display_info(name="bob",age=20):
    print("name:%s age:%d "%(name,age))
    
display_info()

display_info(name="zhangsan")

display_info(age=40,name="wanger")

#以字典形式传参
def display_dic(** vardict):
    print(vardict)
    
display_dic(a=1,b=2,c=3)

